package org.itboys.product.dto;

/**
 * 商品规格明细DTO
 * @author 董事长.王然
 *
 */
public class ProductSpecDetail {

	private long specId;//关联ProductCategorySpec 表的ID
	private long specDetailId;//ProductCategorySpecDetail 表的ID
	/**
	 * 规格明细名字 比如 ProductCategorySpec 设置为尺码 该那么 就是 L XL等
	 * 比如 ProductCategorySpec 设置为红色 则为 红色 绿色 等
	 */
	private String name;
	private String image;//如果展示方式为图片 则图片展示
	private boolean stockAffect = true;//是否要需要设置库存
	private int stock;//库存
	private boolean priceAffect = false; //是否受价格影响
	private int proPrice;//划掉的价格 if priceAffect = true
	private int price;//价格 if priceAffect = true
	private int status;//状态 1:有效 0:废弃
	public long getSpecId() {
		return specId;
	}
	public void setSpecId(long specId) {
		this.specId = specId;
	}
	public long getSpecDetailId() {
		return specDetailId;
	}
	public void setSpecDetailId(long specDetailId) {
		this.specDetailId = specDetailId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public boolean isStockAffect() {
		return stockAffect;
	}
	public void setStockAffect(boolean stockAffect) {
		this.stockAffect = stockAffect;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public boolean isPriceAffect() {
		return priceAffect;
	}
	public void setPriceAffect(boolean priceAffect) {
		this.priceAffect = priceAffect;
	}
	public int getProPrice() {
		return proPrice;
	}
	public void setProPrice(int proPrice) {
		this.proPrice = proPrice;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
}
